package com.xian.d2_modifier.itcast;

import com.xian.d2_modifier.Fu;

public class Zi extends Fu {
    public static void main(String[] args) {
        Fu f = new Fu();
        //f.privateMethod();//报错
        //f.method();//报错
        //f.protectedMethod();//报错
        f.publicMethod();

        Zi z = new Zi();
        //z.privateMethod();;//报错
        //z.method();;//报错
        z.protectedMethod();
        z.publicMethod();

    }
}
